<%@page import="java.util.Properties"%>
<%@page import="com.office.automate.frontier.utility.Utility"%>
<%@page import="com.office.automate.configuration.property.ConfigurationProperties"%>
<%@page import="com.office.automate.model.authenticate.UserAuthenticator"%>
<% 
	UserAuthenticator currentUserSessionMn1 = (UserAuthenticator) (session.getAttribute("currentSessionUser"));
	if (currentUserSessionMn1 == null) {
		return;
	}
	Properties configSeqProps1 = ConfigurationProperties.getProps(); 
	Utility util1 = new Utility(currentUserSessionMn1.getSecurityLevels());
%>
	<tr>
		<td>
			<div id='cssmenu' align="center">
				<ul>
					<li><a href='/OfficeAutomation/jsp/HomePage.jsp'><span>Home</span></a></li>
					<% if (util1.isFunctionalSecurityAllow(configSeqProps1.getProperty("MANAGE_BRANCHES"))) { %>
					<li><a href='/OfficeAutomation/jsp/administration/ManageBranches.jsp'><span>Manage Branches</span></a></li>
					<%
						}
						if (util1.isFunctionalSecurityAllow(configSeqProps1.getProperty("MANAGE_DIVISIONS"))) { 
					%>	
					<li><a href='/OfficeAutomation/jsp/administration/ManageDivisions.jsp'><span>Manage Divisions</span></a></li>
					<%
						}
						if (util1.isFunctionalSecurityAllow(configSeqProps1.getProperty("MANAGE_SECURITY_LEVELS"))) { 
					%>							
					<li><a href='/OfficeAutomation/jsp/administration/ManageSecurityLevels.jsp'><span>Manage Security Levels</span></a></li>
					<%
						}
						if (util1.isFunctionalSecurityAllow(configSeqProps1.getProperty("ADD_PUBLIC_HOLODAYS"))) { 
					%>						
					<li><a href='/OfficeAutomation/jsp/administration/AddPublicHolidays.jsp'><span>Manage Public Holidays</span></a></li>
					<%
						}
					%>						
				</ul>
			</div>
		</td>
	</tr>